<?php

$HTMLstr .= '<div class="body">
    <div class="findOne">
    <div class="findOneInside">
    <form action="?controller=photo&action=save" method="post" enctype=multipart/form-data>';

if (!empty($this->message)) {
    $HTMLstr .= '<div class="head">
        '.$this->message.'
            </div>';
}

if (empty($this->oneModel)) {
    $this->oneModel = new model_PhotoModel();

    $HTMLstr .= '<div class="head">
        Новая фотография
        </div>

        <div class="head">Загрузите фотографию:
        <input name="file" type="file">
        </div>';
}
$HTMLstr .= '<div class="head">
    Описание:
    </div>
        <div class="fetchallOne" id="frame">
        <textarea cols="60" rows="3" name="title">'. $this->oneModel->getTitle() .'</textarea>
        </div>
        <input type="hidden" name="id" value="'. $this->oneModel->getId() .'">
            <div class="fetchallOne" id="frame">
        <input type="submit" value="Загрузить">
        </div>
        </form>
    </div>
        </div>
        </div>';